<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let key1 = Symbol('haha')
        let key2 = Symbol('haha')
        // console.log(key1 === key2)
        let total = Symbol.for('haha')
        let total1 = Symbol.for('haha')
        console.log(total === total1 )
        const obj ={
            a:1,
            b:2,
            [key1]:{age:11},
            [key2]:{age:12},
        }
        // console.log(obj[key1])
    //访问Symbol
    console.log(Object.getOwnPropertySymbols(obj))
    console.log(Object.keys(obj))
    </script>
</body>
</html>